// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

/**
 备注：
 style lang=“scss”
 需要安装 node-sass sass-loader 这两个扩展
 npm install node-sass sass-loader --save
**/

import Vue from 'vue'
import App from './App'
import router from './router/index.js'
import VuePreview from 'vue-preview'
import axios from 'axios'
import VueStar from 'vue-star'
import AMap from 'vue-amap'

Vue.use(AMap)
Vue.use(VuePreview)
Vue.use(VueStar)

// http://lbs.amap.com/dev/key/app 高德地图管理平台
AMap.initAMapApiLoader({
  key: '4d18fa46bfd3ccb81659ca7a9f9a3f79',
  plugin: [
    'AMap.Autocomplete',
    'AMap.PlaceSearch',
    'AMap.Scale',
    'AMap.OverView',
    'AMap.ToolBar',
    'AMap.MapType',
    'AMap.PolyEditor',
    'AMap.CircleEditor',
    'AMap.Geolocation'
  ]
});

Vue.prototype.axios = axios
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
